<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<sql:setDataSource dataSource="connpool"/> 
<sql:query var="alimentos">
	SELECT * FROM alimento WHERE lower(nome) like '%${param.nome.toLowerCase()}%'
</sql:query>
<c:forEach var="alimento" items="${alimentos.rows}">
	<a href="#" onClick="selAlimento('${alimento.codigo}', '${alimento.nome}');"><c:out value="${alimento.nome} - ${alimento.calorias}"/> </a><br/>
</c:forEach>